<?php
function htp($str,$style = ""){
	return print '<p '.$style.'>'.$str.'</p>';	
}
function htdiv($div,$style=""){
	return print '<div '.$style.'> '.$div.' </div>'	;
}
/*input tag function*/
function htinput($type,$name,$value="",$other= ""){
	return	print '
		<input '.$other.' type = "'.$type.'" name = "'.$name.'" value = "'.$value.'" >
	';	
}
function inputSize($size){
	return " size=".$size." ";	
}
function setClass($class){
	return " class = ".$class." ";	
}
function setId($id){
	return " id = ".$id." "	;
}
function setColspan($colspan){
	return "colspan = ".$colspan." ";
}

/*table tag function*/
function htTable($contant,$table=""){
	return "<table ".$table."> ".$contant." </table>";
} 
function tableTd($contant,$td=""){
	return "<td ".$td."> ".$contant." </td>";
}
function tableTr($contant,$tr=""){
	return "<tr ".$tr."> ".$contant." </tr>";
}
function tableTh($contant,$th=""){
	return "<th ".$th."> ".$contant." </th>";
}
function tableTbody($contant,$tbody=""){
	return "<tbody ".$tbody."> ".$contant." </tbody>";
}
function htbr(){
	return print '<br>';
}
function innerbr(){
	return " <br> ";
}
function htStyle($style){
	return "style=".$style."";	
}
function fullStyle($style){
	return " ".$style.";";
}
function tableWidth($width){
	if($width=="*"){
		return ' width ="*" ';	
	}else{
		return ' width ="'.$width.'%"';	
	}
}
function tableBorder($pixel,$line="",$color=""){
	return " border: ".$pixel."px ".$line." ".$color.";";	
}
?>
